package com.czq.gulimail.gulimailproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czq.common.utils.PageUtils;
import com.czq.gulimail.gulimailproduct.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author czq
 * @email 1807099124@qq.com
 * @date 2024-09-23 19:03:06
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 多层分类树形查询
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 逻辑删除
     * @param list
     */
    void deleteByIds(List<Long> list);

    void updateCategoryAndRelations(CategoryEntity category);

    void deleteCategoryAndRelations(Long[] catIds);

    Long[] getCatePath(Long catelogId);
}

